-- GENERATED SPELL FOR [Infinite Slayer] --


function spell0_18170(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18170', 5335, 1)
end

function Sorts_18170(pUnit, Event)
local choix_sorts_18170 = math.random(0, 0)
if choix_sorts_18170 == 0 then
pUnit:RegisterEvent('spell0_18170', 1, 1)
end
end

function mob18170_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18170', math.random(1500, 3000), 1)
end

function mob18170_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18170_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18170_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18170, 1, 'mob18170_Action')
RegisterUnitEvent(18170, 2, 'mob18170_Leave')
RegisterUnitEvent(18170, 3, 'mob18170_Kill')
RegisterUnitEvent(18170, 4, 'mob18170_Die')
